﻿<%@ Page Language="C#" MasterPageFile="Admin.master" %>
<%@ Register src="../module/UpFile.ascx" tagname="UpFile" tagprefix="inal" %>
<%@ Register src="../module/Types.ascx" tagname="Types" tagprefix="inal" %>

<script runat="server">
    public int Item_Id = 0;
    public Links Ad;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["id"] != null)
            {
                Item_Id = Convert.ToInt32(Request.QueryString["Id"].ToString().Trim());
                Ad = new Links(Item_Id);
            }
        }
    }
</script>


<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

<script type="text/javascript" language="javascript">
    /* 维吾尔文输入法停止 */
    attachAll=false;
    bedit_allow = "Item_Title";

    $(document).ready(function(){
        $("#Item_IsShow").val(<%=Ad.Item_IsShow %>);
        $("#Typ11_0").val(<%=Ad.Item_Column %>);
    });
    /* 编辑激活 */
    var Item_Img=<%=Ad.Create_Time.ToString("yyyyMMddHHmmss") %>;
    var Item_Time="<%= Ad.Create_Time%>";

</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"><%=Lang.Show("HomeLinks")%> - <%=Lang.Show("Edit") %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<table class="inputs">
    <tr>
        <td class="text"><%=Lang.Show("Columns") %> :</td>
        <td><inal:Types runat="server" Type="11" /></td>
        <td><div id="Validate-Typ11_0"></div></td>
        <td></td>
    </tr>
    <tr>
        <td><%=Lang.Show("Title") %> (<code title='<%=Lang.Show("MaxLength")%>' id="Item_Title_Code"><%=320-Ad.Item_Title.Length %></code>) : </td>
        <td><input type="text" name="Item_Title" id="Item_Title" maxlength="320" value="<%=Ad.Item_Title %>" /></td>
        <td><div id="Validate-Item_Title"></div></td>
        <td></td>
    </tr>
    <tr>
        <td><%=Lang.Show("Link") %> : </td>
        <td><input type="url"  value="<%=Ad.Item_Url %>" id="Item_Url" /></td>
        <td><div id="Validate-Item_Url"></div></td>
        <td></td>
    </tr>
    <tr>
        <td><%=Lang.Show("Order") %>  : </td>
        <td><input type="number" maxlength="3" min="1" max="254" value="<%=Ad.Orders %>" id="Orders" /></td>
        <td><div id="Validate-Orders"><%=Lang.Show("OrderDirections")%></div></td>
        <td></td>
    </tr>
    <tr>
        <td><%=Lang.Show("Picture") %> : </td>
        <td><inal:UpFile runat="server" Folder="LinksLogo" Item_Extension="*.gif" Obj_Typ="11"  Cat_Height="450" Cat_Width="980" /></td>
        <td></td>
        <td></td>
    </tr>
    <tr>
        <td><%=Lang.Show("ItemCss")%> : </td>
        <td><textarea id="Item_Css" class="code"  rows="6"><%=Ad.Item_Css %></textarea></td>
        <td></td>
        <td></td>
    </tr>
    <tr>
        <td></td>
        <td><button onclick="Links_AddEdit(<%=Request.QueryString["id"] %>)" class="button"><%=Lang.Show("Submit") %></button></td>
        <td></td>
        <td></td>
    </tr>
</table>
<script language="javascript" type="text/javascript">
    ShowLimitLength(320, "Item_Title");
</script>
</asp:Content>

